package org.darkforest.model;

import org.darkforest.common.util.DateUtil;
import org.darkforest.common.util.Page;

import java.math.BigDecimal;

public class PointsLog extends Page{
    private Integer plId;

    private Integer plMemberid;

    private String plMembername;

    private Integer plAdminid;

    private String plAdminname;

    private BigDecimal plPoints;

    private Integer plAddtime;

    private String plAddtimeStr;

    private String plDesc;

    private String plStage;

    private Integer plState;        //积分状态

    private String orderSn;         //关联订单编号

    private Integer orderGoodsId;    //关联订单商品编号

    public PointsLog(){

    }
    public PointsLog(Integer member_id, String member_name, String stage, Integer state, BigDecimal points, String desc, String orderSn,Integer orderGoodsId) {
        this.plMemberid = member_id;
        this.plMembername = member_name;
        this.plStage = stage;
        this.plState = state;
        this.plPoints = points;
        this.plDesc = desc;
        this.orderSn = orderSn;
        this.orderGoodsId = orderGoodsId;
    }

    public Integer getPlId() {
        return plId;
    }

    public void setPlId(Integer plId) {
        this.plId = plId;
    }

    public Integer getPlMemberid() {
        return plMemberid;
    }

    public void setPlMemberid(Integer plMemberid) {
        this.plMemberid = plMemberid;
    }

    public String getPlMembername() {
        return plMembername;
    }

    public void setPlMembername(String plMembername) {
        this.plMembername = plMembername == null ? null : plMembername.trim();
    }

    public Integer getPlAdminid() {
        return plAdminid;
    }

    public void setPlAdminid(Integer plAdminid) {
        this.plAdminid = plAdminid;
    }

    public String getPlAdminname() {
        return plAdminname;
    }

    public void setPlAdminname(String plAdminname) {
        this.plAdminname = plAdminname == null ? null : plAdminname.trim();
    }

    public Integer getPlAddtime() {
        return plAddtime;
    }

    public void setPlAddtime(Integer plAddtime) {
        this.plAddtime = plAddtime;
    }

    public String getPlDesc() {
        return plDesc;
    }

    public void setPlDesc(String plDesc) {
        this.plDesc = plDesc == null ? null : plDesc.trim();
    }

    public String getPlStage() {
        return plStage;
    }

    public void setPlStage(String plStage) {
        this.plStage = plStage == null ? null : plStage.trim();
    }

    public Integer getPlState() {
        return plState;
    }

    public void setPlState(Integer plState) {
        this.plState = plState;
    }

    public Integer getOrderGoodsId() {
        return orderGoodsId;
    }

    public void setOrderGoodsId(Integer orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }

    public void setPlAddtimeStr(String plAddtimeStr) {
        this.plAddtimeStr = DateUtil.toIntDateString(getPlAddtime());
    }
    public String getPlAddtimeStr() {
        return DateUtil.toIntDateString(getPlAddtime());
    }

    public BigDecimal getPlPoints() {
        return plPoints;
    }

    public void setPlPoints(BigDecimal plPoints) {
        this.plPoints = plPoints;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }
}